package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * @author zhangyu
 * @date 2019/7/18
 */
public class CategoryBean implements Parcelable {
    private String category;
    private ArrayList<MaintainWorkBean> maintenanceList;

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public ArrayList<MaintainWorkBean> getMaintenanceList() {
        return maintenanceList;
    }

    public void setMaintenanceList(ArrayList<MaintainWorkBean> maintenanceList) {
        this.maintenanceList = maintenanceList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.category);
        dest.writeTypedList(this.maintenanceList);
    }

    public CategoryBean() {
    }

    protected CategoryBean(Parcel in) {
        this.category = in.readString();
        this.maintenanceList = in.createTypedArrayList(MaintainWorkBean.CREATOR);
    }

    public static final Parcelable.Creator<CategoryBean> CREATOR = new Parcelable.Creator<CategoryBean>() {
        @Override
        public CategoryBean createFromParcel(Parcel source) {
            return new CategoryBean(source);
        }

        @Override
        public CategoryBean[] newArray(int size) {
            return new CategoryBean[size];
        }
    };
}
